<?php

namespace view;
require_once("view/InfoBoxView.php");

class HTMLloginView {
	
	/**
	* @param String $name $password
	* @return String HTML with loginview
	*/
	public function getLoginPage($phrase, $name, $status) {
			
		$infoBoxView = new \view\infoBoxView();
		
		return "<!DOCTYPE html>
	<html>
	<head>
		<meta charset=\"utf-8\">
		<title>Login - Labb 1</title>
		<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">
		<link rel=\"stylesheet\" type=\"text/css\" href=\"_css/jbdesign_basic.css\"/>
	</head>
	<body>
		<div id=\"logincontainer\">
		<div id=\"header\"><a href=\"index.html\"><img src=\"_img/stars2.png\" alt=\"stars\"></a></div>
		<div id=\"content\">
			<h3>". $status ."</h3>
			<header>
				<h1>" . $phrase . $name . "!</h1>
			</header>
			<div>
			<a  href=\"logout.php\" id=\"logOutButton\">Logga ut</a>
			</div>" . $infoBoxView->getInfobox() . "</div>
			</div>
			<footer>
				<p>
					&copy; Copyright  by Jenni
				</p>
			</footer>
	</body>
</html>";
	}
}
